﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SundStudent.ModelLayer;

namespace SundStudent.GUILayer
{
    public partial class LabskemaerForm : Form
    {
        private LektionsPatient selectedPatient;
        public LabskemaerForm(LektionsPatient patient)
        {
            InitializeComponent();
            selectedPatient = patient;
            Console.WriteLine("slectedpatient " + selectedPatient.Navn);
            labelNavn.Text = selectedPatient.Navn + " Stue:  " + selectedPatient.Stue.Stuenr + " Seng " + selectedPatient.Seng.Sengnr; 
            button6.Visible = false;
        }

        private void panel2_Paint(object sender, PaintEventArgs e)
        {

        }

        private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
        {

        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void LabskemaerForm_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (comboBox1.SelectedIndex == 1 &&
                comboBox2.SelectedIndex == 1 &&
                comboBox3.SelectedIndex == 1)
            {
                labelResultat.Text = "Patient skal have normalkost eller kostform tilpasse eventuelle"
                                     + "\nl sygdomme - tilstande";
                button6.Visible = false;
            }
            else
            {
                labelResultat.Text = "Patienten er i ernæringsrisiko i.f.t. underernææring."
                                     + "\nl der skal foretages sekundær screening mhp. vurdering "
                                     + "\nl af graden af underernærig";
                button6.Visible = true;
            }

        }
    }
}
